package com.wtwd.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wtwd.device.model.entity.SysRole;
import com.wtwd.device.model.vo.RespCodeEntity;
import com.wtwd.device.model.vo.RespEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ljiong
 * @date 2021/08/03
 * @description
 */
public interface SysRoleService extends IService<SysRole> {
    List<SysRole> getAllSysRoleList();

    RespEntity getRolePermission(Long fatherRoleId, Long subRoleId);

    RespCodeEntity addRolePermission(Long roleType, List<Integer> permissionList);

    SysRole getSysRoleByRoleId(Long roleId);

    List<SysRole> getSysRoleByRoleTypeList(ArrayList<Integer> roleTypeList);

    Integer bathAddRoleType(ArrayList<SysRole> bathAddSysRole);

    SysRole getSysRoleByRoleType(Integer roleType);
}
